//
//  Userinfo.h
//  SSC
//
//  Created by 红沙尘 on 17/6/19.
//  Copyright © 2017年 红沙尘. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Userinfo : NSObject

@property (nonatomic, copy, readonly) NSString *uid;
@property (nonatomic, copy, readonly) NSString *username;
@property (nonatomic, copy, readonly) NSString *password;
@property (nonatomic, copy, readonly) NSString *token;
@property (nonatomic, copy, readonly) NSString *money;
@property (nonatomic, strong) NSTimer *timer;

+ (Userinfo *)standardUserinfo;
- (void)destory;

- (BOOL)saveUserinfoWithUid:(NSString *)uid
                   username:(NSString *)username
                   password:(NSString *)password
                      token:(NSString *)token;
- (BOOL)isLogin;

- (void)updateMoney:(NSString *)money;

- (void)userMoney:(void (^)(NSString *money))complete;

@end
